package cn.yunyichina.scheduler.jobs.constant;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

public class BizConstant {
    
    public final static String OPENID = "openId";

    public final static String USERID = "userId";
    
    public final static String APPID = "appId";
    
    public final static String APPCODE = "appCode";

    public final static String AREACODE = "areaCode";

    public final static String ORDERNO_KEY = "orderNo";

    public static DateFormat YYYYMMDDE = new SimpleDateFormat("yyyy-MM-dd E", Locale.CHINESE);
   
    public static DateFormat YYYYMMDD = new SimpleDateFormat("yyyy-MM-dd");

    public static DateFormat YYYYMMDDHHMMSS = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static DateFormat YYYYMMDDHHMM = new SimpleDateFormat("yyyy-MM-dd HH:mm");

    public static DateFormat HHMM = new SimpleDateFormat("HH:mm");

    public static final String COMMON_AJAX_REQ_SUCCESS_KEY = "isSuccess";
   
    public static final String COMMON_ENTITY_LIST_KEY = "entityList";

    public static final String COMMON_ENTITY_KEY = "entity";

   
    public static final String COMMON_PARAMS_KEY = "commonParams";

    
    public static final String RULE_COFIG_PARAMS_KEY = "ruleConfig";

   
    public static final String RECORD_PARAMS_KEY = "record";

    
    public static final String MODE_TYPE_WEIXIN = "wechat";
   
    public static final String MODE_TYPE_ALIPAY = "alipay";

    
    public static final String MODE_TYPE_UNIONPAY = "unionpay";

    
    public static final String MODE_TYPE_EASYHEALTH = "easyHealth";

    public static final String MODE_TYPE_OTHER = "未知";
    public static final int MODE_TYPE_WEIXIN_VAL = 1;
    public static final int MODE_TYPE_ALIPAY_VAL = 2;
    public static final int MODE_TYPE_EASYHEALTH_WEIXIN_VAL = 3;
    public static final int MODE_TYPE_EASYHEALTH_ALIPAY_VAL = 4;
    public static final int MODE_TYPE_EASYHEALTH_UNIONPAY_VAL = 5;
    public static final int MODE_TYPE_UNIONPAY_VAL = 6;

    
    public static final int TRADE_MODE_WEIXIN = 1;

    
    public static final int TRADE_MODE_ALIPAY = 2;

    public static final int TRADE_MODE_EASYHEALTH_WEIXIN_VAL = 3;
    public static final int TRADE_MODE_EASYHEALTH_ALIPAY_VAL = 4;
    public static final int TRADE_MODE_EASYHEALTH_UNIONPAY_VAL = 5;

    
    public static final int TRADE_MODE_UNIONPAY = 6;

    
    public static final int TRADE_MODE_EASYHEALTH_HEALTH_CARD_VAL = 7;

    
    public static final int TRADE_MODE_EASYHEALTH_INSURANCE_HEALTH_CARD_VAL = 8;

    
    public static final int TRADE_MODE_EASYHEALTH_CITIC_BANK_VAL = 9;

   
    public static final int ORDER_TYPE_PAYMENT = 1;

    
    public static final int ORDER_TYPE_REFUND_ONLINE = 2;

   
    public static final int ORDER_TYPE_REFUND_SYSTEM = 3;

    
    public static final int ORDER_TYPE_REFUND_STOP = 4;

    
    public static final int ORDER_TYPE_REFUND_OFFLINE_ALL = 5;

    
    public static final int ORDER_TYPE_REFUND_OFFLINE_PART = 6;

    
    public static final int BIZ_TYPE_REGISTER = 1;
    public static final String BIZ_TYPE_REGISTER_NAME = "挂号";

    
    public static final int BIZ_TYPE_CLINIC = 2;
    public static final String BIZ_TYPE_CLINIC_NAME = "门诊";

    
    public static final int BIZ_TYPE_DEPOSIT = 3;
    public static final String BIZ_TYPE_DEPOSIT_NAME = "住院";

   
    public static final int ORDER_STATE_NOT_PAYMENT = 1;

    
    public static final int ORDER_STATE_PAYMENT = 2;

    
    public static final int ORDER_STATE_REFUND = 3;

    
    public static final String INTERFACE_EXEC_IS_EXCEPTION = "isException";

    
    public static final String INTERFACE_EXEC_IS_SUCCESS = "isSuccess";

    
    public static final String INTERFACE_MAP_CODE_KEY = "resCode";


    public static final String INTERFACE_MAP_DATA_KEY = "data";


    public static final String INTERFACE_MAP_MSG_KEY = "msgInfo";


    public static final String INTERFACE_RES_SUCCESS_CODE = "0";


    public static final String INTERFACE_RES_SUCCESS_NO_DATA_CODE = "1";


    public static final String INTERFACE_RES_SUCCESS_INVALID_DATA_CODE = "2";


    public static final String INTERFACE_RES_SUCCESS_HIS_INVALID = "2";


    public static final String INTERFACE_RES_RE_OP_CODE = "1";


    public static final String INTERFACE_RES_EXCEPTION_CODE = "-1";


    public static final String INTERFACE_RES_FAILURE_MSG = "网络异常,请保持您的网络通畅,稍后再试.";


    public static final String MOTHED_INVOKE_RES_ISSUCCESS_KEY = "isSuccess";

    public static final int MOTHED_INVOKE_SUCCESS = 0;
    public static final int MOTHED_INVOKE_FAILURE = 1;
    public static final int MOTHED_INVOKE_EXCEPTION = -1;


    public static final String MOTHED_INVOKE_RE_OPERATION = "isReInvoke";


    public static final String MOTHED_INVOKE_RES_MSG_KEY = "msgInfo";


    public static final String MOTHED_INVOKE_RES_DATA_KEY = "data";

 
    public static final String BIZ_CODE_PARAM_NAME = "bizCode";


    public static final String MSG_PUSH_URL_PARAMS_KEY = "urlParams";


    public static final int BIZ_CODE_REGISTER = 1;


    public static final int BIZ_CODE_CLINIC = 2;


    public static final int BIZ_CODE_HOSPITALIZATION = 3;


    public static final int BIZ_CODE_INSPECT = 4;
 
    public static final int PAYMENT_TYPE_MUST = 1;

 
    public static final int PAYMENT_TYPE_NOT_NEED = 2;


    public static final int PAYMENT_TYPE_SUPPORT_TEMPORARILY_NOT = 3;


    public static final int PAYMENT_TYPE_SUPPORT_TEMPORARILY_NOT_IS_PAY_YES = 1;


    public static final int DEFAULT_VIEW_DISEASEDESC = 1;

    public static final String TRADE_PAY_KEY = "pay";
    public static final String TRADE_REFUND_KEY = "refund";


    public static final String TRADE_REMOTE_URL_PROPERTIES_KEY = "trading_platform_url";

    public static final String TRADE_LOCAL_URL_PROPERTIES_KEY = "local_trading_url";


    public static final String TRADE_URL_KEY = "tradeUrl";


    public static final String TRADE_NUM_PARAM_NAME = "tradeNo";


    public static final String TRADE_MODE = "tradeMode";


    public static final String TRADE_IS_EXCEPTION = "isException";


    public static final String TRADE_FAIL_MSG = "failMsg";


    public static final Map<String, String> ruleTableMap = new HashMap<String, String>();

    static {
        ruleTableMap.put("SYS_RULE_EDIT", "全局规则");
        ruleTableMap.put("SYS_RULE_ONLINE_FILING", "在线建档规则");
        ruleTableMap.put("SYS_RULE_PAYMENT", "缴费规则");
        ruleTableMap.put("SYS_RULE_QUERY", "查询规则");
        ruleTableMap.put("SYS_RULE_REGISTER", "挂号规则");
        ruleTableMap.put("SYS_RULE_TIED_CARD", "绑卡规则");
    }


    public static final String SUCCESS = "success";


    public static final String FAIL = "fail";

 
    public static final String PROMTP = "prompt";


    public static final int IS_HAPPEN_EXCEPTION_YES = 1;


    public static final int IS_HAPPEN_EXCEPTION_NO = 0;

    public static final int HANDLED_HAD_HANDLED = 1;


    public static final int HANDLED_NO_HANDLED = 0;


    public static final int HANDLED_SUCCESS = 1;

 
    public static final int HANDLED_FAILURE = 0;


    public static final int HANDLED_TIME_OVER_MAXNUM = 3;


    public static final String ALI_REFUND_SPLIT_CHAR = "^";

    public static final int SEX_MAN = 1;
    public static final int SEX_WOMEN = 2;

 
    public static final String URL_PARAM_FORWARD_NAME = "forward";
  
    public static final String URL_PARAM_PHP_FORWARD_NAME = "redirect_uri";


    public static final String INVOKE_TYPE_WEB_REQ = "webReq";
 
    public static final String INVOKE_TYPE_SERVICE_REQ = "serviceReq";

    public static final String CHECK_IS_VALID_RES_KEY = "isValid";

    public static final String VIEW_SENSITIVE_CHAR = "*";


    public static final int IS_HAD_CALLBACK_YES = 1;
    public static final int IS_HAD_CALLBACK_NO = 0;


    public static final String PAY_NOTIFY_METHOD_NAME_REG = "regPayMent";


    public static final String PAY_NOTIFY_METHOD_NAME_CLINIC = "clinicPayMent";


    public static final String PAY_NOTIFY_METHOD_NAME_DEPOSIT = "depositPayMent";

  
    public static final int WHITE_LIST_IS_OPEN_YES = 1;


    public static final String URL_PARAM_CHAR_FIRST = "?";
    public static final String URL_PARAM_CHAR_ASSGIN = "=";
    public static final String URL_PARAM_CHAR_CONCAT = "&";
    public static final String URL_PARAM_ORDER_NO = "orderNo";
    public static final String URL_PARAM_APPID = "appId";
    public static final String URL_PARAM_APPCODE = "appCode";
    public static final String URL_PARAM_OPEN_ID = "openId";
    public static final String URL_PARAM_USER_ID = "userId";
    public static final String URL_PARAM_HOSPITAL_CODE = "hospitalCode";
    public static final String URL_PARAM_BRANCH_HOSPITAL_CODE = "branchHospitalCode";
    public static final String URL_PARAM_TRADE_MODE = "tradeMode";
    public static final String URL_PARAM_TRADE_AMOUT = "tradeAmout";
    public static final String URL_PARAM_REG_TYPE = "regType";
    public static final String URL_PARAM_FOOT_LOGO_INFO = "footLogo";
    public static final String URL_PARAM_VOTE_TYPE = "voteType";


    public static final String COMMON_SESSION_PARAMS = "commonSessionParams";

    public static final Map<String, String> areaCode = new HashMap<String, String>();

    static {
        areaCode.put("ShenZheng", "深圳");
        areaCode.put("GuangZhou", "广州");
    }


    public static final String TRADE_PATH_PREFIX = "/pay/info/";


    public static final int VOTE_IS_HAD_YES = 1;
    public static final int VOTE_IS_HAD_NO = 0;


    public static final String VOTE_VIEW_LIST_NO_VOTE = "noVote";
    public static final String VOTE_VIEW_LIST_HAD_VOTE = "hadVote";
    public static final String VOTE_VIEW_LIST_ALL_VOTE = "allVote";


    public static final String SEARCH_TYPE_HOSPITAL = "hospital";
    public static final String SEARCH_TYPE_DEPT = "dept";
    public static final String SEARCH_TYPE_DOCTOR = "doctor";

 
    public static final int IS_VIEW_YES = 1;
    public static final int IS_VIEW_NO = 0;


    public static final int IS_VALID_YES = 1;
    public static final int IS_VALID_NO = 0;


    public static final String OPTION_CLINIC_PAY = "clinicPay";

 
    public static final String OPTION_DUTY_REGISTER = "dutyRegister";


    public static final String OPTION_RESERVATION_REGISTER = "reservationRegister";


    public static final String OPTION_RESERVATION_TAKENO = "reservationTakeNo";


    public static final String OPTION_SMART_WAIT = "smartWait";


    public static final String OPTION_REPORT_QUERY = "reportQuery";


    public static final String OPTION_ONLINE_FILING = "onlineFiling";


    public static final String OPTION_CLOUD = "cloud";

  
    public static final String OPTION_GUIDE = "guide";


    public static final String OPTION_TRAFFIC = "traffic";


    public static final int IS_NEED_PUSH_MSG_YES = 1;


    public static final int IS_NEED_PUSH_MSG_NO = 0;
    
    public static final int MAX_EXCEPTION_HANDLE_TIMES = 24;
    
    public static final int MAX_REFUND_HANDLE_TIMES = 24;


    public final static String RULE_ATTRIBUTE_NAME = "CheckAccountFlag";

}
